﻿using BusinessObjects;
using BusinessObjects.BusinessRules;

namespace BusinessSecurity
{
    /// <summary>
    ///     PermissionInSite
    /// </summary>
    public class PermissionInSite : BusinessObject
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="PermissionInSite" /> class.
        /// </summary>
        public PermissionInSite()
        {
            AddRule(new ValidateId("SiteId"));
            AddRule(new ValidateId("PermissionId"));
            //Permission = new Permission();
            //Site = new Site();
        }

        /// <summary>
        ///     Initializes a new instance of the <see cref="PermissionInSite" /> class.
        /// </summary>
        /// <param name="siteId">The site identifier.</param>
        /// <param name="permissionId">The permission identifier.</param>
        public PermissionInSite(int siteId, int permissionId)
        {
            SiteId = siteId;
            PermissionId = permissionId;
        }

        /// <summary>
        ///     Gets or sets the permission identifier.
        /// </summary>
        /// <value>
        ///     The permission identifier.
        /// </value>
        public int PermissionId { get; set; }

        /// <summary>
        ///     Gets or sets the site identifier.
        /// </summary>
        /// <value>
        ///     The site identifier.
        /// </value>
        public int SiteId { get; set; }

        ///// <summary>
        /////     Gets or sets the permission.
        ///// </summary>
        ///// <value>
        /////     The permission.
        ///// </value>
        //public Permission Permission { get; set; }

        ///// <summary>
        /////     Gets or sets the site.
        ///// </summary>
        ///// <value>
        /////     The site.
        ///// </value>
        //public Site Site { get; set; }
    }
}